package org.rasterfun.language2.bool

import org.rasterfun.language2.Context
import collection.mutable.StringBuilder

/**
 * Parenthesis around boolean expression
 */
case class BoolParen(expr: Bool) extends Bool{

  override def children = List(expr)

  def generateCode(context: Context, s: StringBuilder) {
    s.append(" ( ")
    expr.code(context, s)
    s.append(" ) ")
  }
}
